package forum.client.ui.events;

import forum.client.ui.UsersListHandlerInt;

public class UsersListErrorEvent implements UsersListEvent{
	/**
	 * The error message to show the user in the GUI.
	 */
	private String m_errorMessage;

	public UsersListErrorEvent(String errorMessage){
		m_errorMessage=errorMessage;
	}
	@Override
	public EventType getType() {
		return EventType.ERROR;
	}

	@Override
	public void respondToEvent(UsersListHandlerInt handler) {
		handler.NotifyError(m_errorMessage);

	}

}
